package com.qingcloud.adminbackend.entity.message;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * 事件管理表
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_message_event")
public class SysMessageEvent extends Model {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "事件名称")
    private String eventName;

    @ApiModelProperty(value = "事件编号",example = "235")
    private String eventCode;

    /**
     * 事件类型配置id（sys_message_type_config表id）
     */
    @ApiModelProperty(value = "实例类型配置Id")
    private Integer typeId;


    @ApiModelProperty(value = "事件来源：（1：硬件设备；2应用系统）")
    private Integer eventOrigin;


    @ApiModelProperty(value = "触发类型：1直接映射；2定时触发；3：事件监听")
    private Integer triggerType;

    @ApiModelProperty(value = "是否开启（0:关闭；1：开启）")
    private Integer status;
}
